package com.sc.smartcommunity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Repair {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 报修类型：停水、停电、其他
     */
    @TableField("repair_type")
    private String repairType;

    /**
     * 预约时间
     */
    @TableField("appointment_time")
    private Date appointmentTime;

    /**
     * 状态：0-待处理 1-已处理
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Repair(Long id, String repairType, Date appointmentTime, Integer status, Date createTime, Date updateTime) {
        this.id = id;
        this.repairType = repairType;
        this.appointmentTime = appointmentTime;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Repair() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
